package com.dfqy.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Survey implements Serializable {
    private long id;//编号
    private String choseQues;//题号，集中存放，逗号隔开
    private Date postTime;//发布时间
    private long userId;//参与调查人
    private String phone;//电话
    private short score;//分数
    private Date finishTime;//结束时间
    private long sType;//类别
    private long choseAnswer;//用户选择，用冒号隔开题目和选项，用逗号隔开题目

    public Survey(String choseQues, Date postTime, long userId, String phone, short score, Date finishTime, long sType, long choseAnswer) {
        this.choseQues = choseQues;
        this.postTime = postTime;
        this.userId = userId;
        this.phone = phone;
        this.score = score;
        this.finishTime = finishTime;
        this.sType = sType;
        this.choseAnswer = choseAnswer;
    }
}
